<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="/css/normalize.css">
    <link rel="stylesheet" href="/css/reset.css">
    <style>
      h1{
        width: 120px;
        font-size: 30px;
        font-weight: bolder;
        margin: 10px auto;
      }
      .regist-form{
        width: 400px;
        margin: 10px auto;
      }
      .regist-form-item{
        width: 300px;
        margin: 10px auto;
      }
      .regist-form-item > input{
        width: 300px;
        height: 40px;
        display: block;
        margin: 0 auto;
      }
      h1{
        margin: 0 auto;
      }
      #form-submit{
        width: 308px;
        height: 30px;
      }
    </style>
  </head>
  <body>
    <div class="regist-form">
      <h1>用户注册</h1>
      <form action="/user/register" method="post">
        <div class="regist-form-item">
          <input type="text" name="username" placeholder="用户名">
        </div>
        <div class="regist-form-item">
          <input type="password" name="password" placeholder="密码">
        </div>
        <div class="regist-form-item">
          <input type="email" name="email" placeholder="邮箱">
        </div>
        <div class="regist-form-item">
          <input id="form-submit" type="submit" value="注册">
        </div>
        <span style="color:red;" th:text="${rmsg}"></span>
      </form>
    </div>
  </body>
</html>